<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
  <meta charset="utf-8">

  <title><%= enki_config[:title] %> - Admin</title>

  <%= csrf_meta_tag %>

  <%= javascript_include_tag 'admin' %>

  <%= stylesheet_link_tag 'admin' %>
  <%= yield(:head) %>

  <% if flash[:notice] -%>
    <%= javascript_tag do -%>
      $(function() {
        humanMsg.displayMsg('<%= escape_javascript(flash[:notice]) %>');
      })
    <% end -%>
  <% end -%>

</head>
<body>
  <div id="page">
    <div id="content">
      <%= yield %>
    </div>
    <div id="nav">
      <ul>
        <li><%= nav_link_to("Dashboard", admin_root_path,       :accesskey => '1') %></li>
        <li><%= nav_link_to("Posts",     admin_posts_path,      :accesskey => '2') %> <%= nav_link_to("(+)", new_admin_post_path, :accesskey => 'n') %></li>
        <li><%= nav_link_to("Pages",     admin_pages_path,      :accesskey => '3') %> <%= nav_link_to("(+)", new_admin_page_path, :accesskey => 'p') %></li>
        <li><%= nav_link_to("Comments",  admin_comments_path,   :accesskey => '4') %></li>
        <li><%= nav_link_to("Actions",   admin_undo_items_path, :accesskey => '5') %></li>
        <li><%= nav_link_to("Health",    admin_health_path,     :accesskey => '6') %></li>
        <li class="separator">&nbsp;</li>
        <li><%= link_to("Logout", admin_session_path, :accesskey => 'l', :method => :delete) %></li>
        <li><%= link_to("View Site", root_path,       :accesskey => 'v', :title => 'View Site') %></li>
      </ul>
    </div>
  </div>
</body>
</html>
